package edu.object_oriented.superPra;

public class Peo {

    private String name;

    private int age;

    private String sex;

    String msg;


    void print(){
        System.out.println(name + age + sex);
    }

    public Peo() {
        System.out.println("Peo父类构造");
    }

    public Peo(String name, int age, String sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    //属性封装   get/set接口的快速生成   alt+insert
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }


}
